/****************************************************************************

 Copyright (C) 2009 Jean Pierre Charalambos. All rights reserved.

 Jean Pierre Charalambos (http://dis.unal.edu.co/profesores/pierre/) is an
 Affiliate Associate Professor of the Faculty of Engineering at National
 University of Colombia (http://www.unal.edu.co/).

 This file is part of maku version 0.2.

 http://code.google.com/p/maku/
 email: jpcharalambosh@unal.edu.co

 This file may be used under the terms of the GNU General Public License
 versions 2.0 or 3.0 as published by the Free Software Foundation and
 appearing in the COPYING file included in the packaging of this file.

 This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

*****************************************************************************/

#ifndef DECIMATERDIALOG_H
#define DECIMATERDIALOG_H

#include "ui_decimaterdialog.h"
#include "decimateroptions.h"

class QPushButton;

class DecimaterDialog : public QDialog, private Ui::DecimaterDialog {

        Q_OBJECT

    public:
        DecimaterDialog ( DecimaterOptions *, QWidget *parent = 0 );

    private slots:
        void on_percentageButton_toggled ( bool );
        void on_verticesButton_toggled ( bool );
        void on_collapsesButton_toggled ( bool );
        void on_targetCheckBox_toggled ( bool );
        void on_buttonBox_accepted();
        void collapseOrExpandDialog();

    private:
        DecimaterOptions * decOpt;
        QPushButton * collapseButton;
};

#endif
